MV_CC_EnumerateTls

MV_CC_EnumerateTls

Get supported transport layers.

API Definition

int MV_CC_EnumerateTls(
);

Return Value

Return supported device type, indicated by bit, supporting multiple selection, available protocol types are shown below:

Macro Definition

Value

Description

MyCamera.MV_UNKNOW_DEVICE

0x00000000

Unknown Device Type

MyCamera.MV_GIGE_DEVICE

0x00000001

GigE Device

MyCamera.MV_1394_DEVICE

0x00000002

1394-a/b Device

MyCamera.MV_USB_DEVICE

0x00000004

USB3.0 Device

MyCamera.MV_CAMERALINK_DEVICE

0x00000008

CameraLink Device

E.g., if nTLayerType == MyCamera.MV_GIGE_DEVICE | MyCamera.MV_USB_DEVICE, it indicates that GigE device and USB3.0 device are both supported.

The following sample code is for reference only.

#include "MvCameraControl.h"

void main()
{
    unsigned int nTransLayers = MV_CC_EnumerateTls();
    if (nTransLayers & MV_GIGE_DEVICE)
    {
        OutputString(_T("MV_GIGE_DEVICE"));
    }
}

MV_CC_EnumerateTls

Get supported transport layers.

API Definition

int MV_CC_EnumerateTls(
);

Return Value

Return supported device type, indicated by bit, supporting multiple selection, available protocol types are shown below:

Macro Definition

Value

Description

MyCamera.MV_UNKNOW_DEVICE

0x00000000

Unknown Device Type

MyCamera.MV_GIGE_DEVICE

0x00000001

GigE Device

MyCamera.MV_1394_DEVICE

0x00000002

1394-a/b Device

MyCamera.MV_USB_DEVICE

0x00000004

USB3.0 Device

MyCamera.MV_CAMERALINK_DEVICE

0x00000008

CameraLink Device

E.g., if nTLayerType == MyCamera.MV_GIGE_DEVICE | MyCamera.MV_USB_DEVICE, it indicates that GigE device and USB3.0 device are both supported.

The following sample code is for reference only.

#include "MvCameraControl.h"

void main()
{
    unsigned int nTransLayers = MV_CC_EnumerateTls();
    if (nTransLayers & MV_GIGE_DEVICE)
    {
        OutputString(_T("MV_GIGE_DEVICE"));
    }
}